<?php
/**@var \Weline\Framework\View\Template $this */
/**@var \Weline\Backend\Block\ThemeConfig $themeConfig */
$themeConfig = \Weline\Framework\Manager\ObjectManager::getInstance(\Weline\Backend\Block\ThemeConfig::class);
?>
<!DOCTYPE html>
<!--
 *@Author       秋枫雁飞
 *@Email        aiweline@qq.com
 *@Forum        https://bbs.aiweline.com
 *@DESC         后台共用头部
-->
<html lang="en" <?= ('rtl' === $themeConfig->getThemeModel()) ? " dir=\"rtl\"" : '' ?>>
<head>
    <w:template>Weline_Admin::common/head.phtml</w:template>
    <title>配置列表</title>
</head>

<!--<body data-sidebar="dark" data-topbar='colored' data-layout='horizontal'>-->
<body <?= $themeConfig->getLayouts() ?? ''; ?>>
<!-- <body data-layout="horizontal" data-topbar="dark"> -->
<!--加载中组件 开始-->
<w:template>Weline_Admin::common/page/loading.phtml</w:template>
<!-- 开始 页面 -->
<div id="layout-wrapper">

    <!--页头工具条 开始-->
    <w:block class='Weline\Admin\Block\Backend\Page\Topbar'/>
    <!--页头工具条 结束-->

    <!-- ========== Topnav Start ========== -->
    <!--页头菜单栏 开始-->
    <w:block class='Weline\Admin\Block\Backend\Page\Topnav'/>
    <!--页头菜单栏 结束-->

    <!-- ========== Left Sidebar Start ========== -->
    <!--左侧菜单栏 开始-->
    <w:template>Weline_Admin::common/left-sidebar.phtml</w:template>
    <!--左侧菜单栏 结束-->


    <!-- ============================================================== -->
    <!-- Start right Content here -->
    <!-- ============================================================== -->
    <div class='main-content'>
        <div class='page-content'>
            <div class='container-fluid'>
                <div class='row'>
                    <!--消息-->
                    <template>Weline_Component::message.phtml</template>
                </div>
                <!-- start page title -->
                <div class='row'>
                    <div class='col-12'>
                        <div class='page-title-box d-sm-flex align-items-center justify-content-between'>
                            <h4 class='mb-sm-0'>
                                <lang>Config</lang>
                            </h4>
                            <div class='page-title-right'>
                                <breadcrumb model="Weline\Backend\Model\Menu"
                                            id_field="menu_id"
                                            parent_field="pid"
                                            order_field="order"
                                            name_field="title"
                                />
                            </div>

                        </div>
                    </div>
                </div>
                <!-- end page title -->
                <!-- start page message -->
                <div class='row'>
                    <template>Weline_Component::message.phtml</template>
                </div> <!-- end message -->
                <div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <h4 class="card-title">
                                    <lang>Config</lang>
                                </h4>
                                <!--<div class="table-responsive mCustomScrollbar" data-mcs-axis="yx" data-mcs-theme='dark'
                                     style="height: 800px">-->
                                <div class='table-responsive mCustomScrollbar' data-mcs-axis='x'
                                     data-mcs-theme='dark'>
                                    <form action="@backend-url('*/admin/reviews/setting')" method="post">
                                        <foreach name="configs" key="key" item="v">
                                            <div class="col-md-6">
                                                <div class="mb-3">
                                                    <label class="form-label" for="{{key}}"><span class="text-danger">*</span>{{v.label}}</label>
                                                    <input name="{{key}}" scope="jhll_shipping" type="text" class="form-control" id="{{key}}" placeholder="" value="{{v.value}}"
                                                           required>
                                                    <div class="valid-feedback">
                                                        Data is valid.
                                                    </div>
                                                    <div class="invalid-feedback">
                                                        Please enter a valid data.
                                                    </div>
                                                </div>
                                            </div>
                                        </foreach>
                                        <input type="submit" value="Submit" class="btn btn-primary">
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div> <!-- end col -->
                </div>
                <!-- end row -->

            </div>
            <!-- container-fluid -->
        </div>
        <!-- End Page-content -->

        <footer class='footer'>
            <div class='container-fluid'>
                <div class='row'>
                    <div class='col-sm-6'>
                        <script>document.write(new Date().getFullYear())</script>
                        © Weline.
                    </div>
                    <div class='col-sm-6'>
                        <div class='text-sm-end d-none d-sm-block'>
                            Crafted with <i class='mdi mdi-heart text-danger'></i> By <a
                                    href='https://www.aiweline.com/'>秋枫雁飞(aiweline)</a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>

    </div>
    <!-- end main content-->

</div>
<!-- END layout-wrapper -->

<!--右边栏-->
<w:template>Weline_Admin::common/right-sidebar.phtml</w:template>
<!--页脚-->
<w:template>Weline_Admin::common/footer.phtml</w:template>
</body>
</html>

